<template>
  <div class="">
    序号：<input type="text" v-model="sid" /> 车型：<input
      type="text"
      v-model="name"
    />
    <button @click="save">添加</button>
  </div>
</template>

<script>
export default {
  props: ["add"],
  data() {
    return {
      sid: "",
      name: "",
      select: ""
    };
  },
  mounted() {},
  methods: {
    save() {
      this.$emit("add", this.sid, this.name);
      this.sid = "";
      this.name = "";
    },
  },
  components: {}
};
</script>

<style lang='scss'>
</style>
